Dekoratives Banner

Application open() Method


    app.open()
    app.open(file)

Description

    The open() method opens a project. If the file parameter is null (i.e. if no argument is used) the user will be presented with a dialog to select and open a file.

Parameters

    file

    (Optional) File object being opened

Returns

    Project object (the file specified as a parameter), or null if the user cancels the Open dialog.

Example

    var my_file = new File("../my_folder/my_test.aep");
    if (my_file.exist){
        new_project = app.open(my_file);
        if (new_project){
            alert(new_project.file.name);
        }
    }